package trlygjj.tanruiliyigenjinjin.mapper;

import org.apache.ibatis.annotations.Param;
import trlygjj.tanruiliyigenjinjin.domain.PotentialCustomer;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface PotentialCustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PotentialCustomer record);

    PotentialCustomer selectByPrimaryKey(Long id);

    List<PotentialCustomer> selectAll();

    int updateByPrimaryKey(PotentialCustomer record);

    int queryForCount(QueryObject qo);

    List<PotentialCustomer> queryForList(QueryObject qo);


    void tsetRegistration(PotentialCustomer potentialCustomer);

    void positive(@Param("positived") int positivedCostomer, @Param("customerId") Long id);

    void changeInpoolState(@Param("inpoolState") int inpoolState,@Param("pId") Long pId);

    void changeToOutPoll(PotentialCustomer potentialCustomer);

    void followChange(PotentialCustomer potentialCustomer);

    PotentialCustomer validateTell(String tell);

    PotentialCustomer validateQq(String qq);
}